internal/runtime/maps.table.capacity (field)
15 uses
internal/runtime/maps (current package)
table.go#L39: capacity uint16
table.go#L104: t.capacity = capacity
table.go#L116: if t.capacity == 0 {
table.go#L120: } else if t.capacity <= abi.MapGroupSlots {
table.go#L127: return t.capacity - 1
table.go#L129: if t.capacity > math.MaxUint16/maxAvgGroupLoad {
table.go#L132: return (t.capacity * maxAvgGroupLoad) / abi.MapGroupSlots
table.go#L511: if t.tombstones()*10 < t.capacity { // 10% of capacity
table.go#L570: if cnt*10 < int(t.capacity) { // Can we restore 10% of capacity?
table.go#L596: return (t.capacity*maxAvgGroupLoad)/abi.MapGroupSlots - t.used - t.growthLeft
table.go#L945: entryMask := uint64(it.tab.capacity) - 1
table.go#L1161: newCapacity := 2 * t.capacity
table.go#L1230: if t.capacity > 0 {
table_debug.go#L65: growthLeft := (t.capacity*maxAvgGroupLoad)/abi.MapGroupSlots - t.used - deleted
table_debug.go#L87: capacity: `, t.capacity, `
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |